/* 消息列表样式 */
.message-list {
    background: transparent;
  }
  
  .message-list ion-item {
    --padding-start: 8px;
    --padding-end: 8px;
    --inner-padding-end: 8px;
    --border-color: var(--ion-color-light-shade);
  }
  
  .message-list .unread {
    --background: rgba(var(--ion-color-primary-rgb), 0.05);
  }
  
  .message-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    margin-right: 12px;
  }
  
  .online-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: var(--ion-color-success);
    border: 2px solid var(--ion-color-light);
    border-radius: 50%;
  }
  
  .message-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  
  .message-time {
    font-size: 0.8rem;
    color: var(--ion-color-medium);
    margin-bottom: 4px;
  }
  
  /* 空状态样式 */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 70vh;
    padding: 20px;
  }
  
  .empty-state ion-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
  }
  
  .empty-state h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  .empty-state p {
    margin: 0 0 20px;
    color: var(--ion-color-medium);
  }
  
  /* 聊天界面样式 */
  .chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px - 56px); /* 减去头部高度 */
  }
  
  .chat-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--ion-color-light-shade);
  }
  
  .chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 12px;
  }
  
  .chat-info {
    flex: 1;
  }
  
  .chat-name {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
  }
  
  .chat-status {
    font-size: 0.8rem;
    color: var(--ion-color-medium);
    display: block;
  }
  
  .chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .message {
    display: flex;
    margin-bottom: 16px;
    max-width: 80%;
  }
  
  .message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
  }
  
  .message.received {
    align-self: flex-start;
  }
  
  .message-avatar {
    width: 32px;
    height: 32px;
    margin: 0 8px;
    align-self: flex-end;
  }
  
  .message-content {
    display: flex;
    flex-direction: column;
  }
  
  .message-text {
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
  }
  
  .sent .message-text {
    background-color: var(--ion-color-primary);
    color: white;
    border-bottom-right-radius: 2px;
  }
  
  .received .message-text {
    background-color: var(--ion-color-light);
    color: var(--ion-color-dark);
    border-bottom-left-radius: 2px;
  }
  
  .message-time {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: var(--ion-color-medium);
    margin-top: 4px;
  }
  
  .message-time ion-icon {
    margin-right: 4px;
  }
  
  .sent .message-time {
    justify-content: flex-end;
  }
  
  .message-status {
    align-self: flex-end;
    margin-left: 4px;
  }
  
  .message-input {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid var(--ion-color-light-shade);
    background: white;
  }
  
  .message-input-field {
    flex: 1;
    background: var(--ion-color-light);
    border-radius: 20px;
    padding: 0;
  }
  
  .message-input-field .searchbar-input-container {
    height: 40px;
  }
  
  .message-input-field .searchbar-input {
    padding-left: 16px;
    padding-right: 16px;
    background: transparent;
    box-shadow: none;
  }
  
  /* 深色主题适配 */
  .dark-theme .message-input {
    background: var(--ion-color-step-50);
    border-top: 1px solid var(--ion-color-step-100);
  }
  
  .dark-theme .message-input-field {
    background: var(--ion-color-step-100);
  }
  
  .dark-theme .received .message-text {
    background-color: var(--ion-color-step-100);
    color: var(--ion-color-light);
  }
  
  .dark-theme .empty-state ion-icon {
    color: var(--ion-color-medium);
  }